﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.EntityFrameworkCore;

namespace TrainingReminderSystem.Dal
{
    /// <summary>
    /// 数据库函数
    /// </summary>
    public static partial class DbFun
    {
        /// <summary>
        /// 距离
        /// </summary>
        /// <param name="latS"></param>
        /// <param name="lngS"></param>
        /// <param name="latE"></param>
        /// <param name="lngE"></param>
        /// <returns></returns>
        /// <exception cref="NotSupportedException"></exception>
        [DbFunction("CodeFirstDatabaseSchema", "fn_getDistance")]
        public static decimal fn_getDistance(decimal? latS, decimal? lngS, decimal? latE, decimal? lngE)
        {
            throw new NotSupportedException();
        }

        /// <summary>
        /// 隐藏成*号
        /// </summary>
        /// <param name="str"></param>
        /// <param name="replace"></param>
        /// <returns></returns>
        /// <exception cref="NotSupportedException"></exception>
        [DbFunction("CodeFirstDatabaseSchema", "fn_replaceNum")]
        public static string fn_replaceNum(string str, bool? replace)
        {
            throw new NotSupportedException();
        }

        ///// <summary>
        ///// 隐藏成*号
        ///// </summary>
        ///// <param name="str"></param>
        ///// <param name="replace"></param>
        ///// <returns></returns>
        ///// <exception cref="NotSupportedException"></exception>
        //[DbFunction("CodeFirstDatabaseSchema", "fn_overDay")]
        //public static string fn_overDay(string str, int day)
        //{
        //    throw new NotSupportedException();
        //}
    }
}
